From 0e53ec5c0e6202a3eebfe8f986cdff845c6e37e3 Mon Sep 17 00:00:00 2001
From: Enrico Tröger <enrico@xfce.org>
Date: Sun, 23 Oct 2011 21:34:33 +0000
Subject: Just unref the toolbar widget instead of explicitly destroying it.

This fixes crashing with GTK 2.24.7 on exit though not exactly sure why it
happens. But unref'ing helps and the toolbar widget is destroyed together
with the main window afterwards.
---
diff --git a/src/window.c b/src/window.c
index bede8f4..9bfa14e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -145,7 +145,7 @@ static void gigolo_window_destroy(GigoloWindow *window)
 	gtk_widget_destroy(priv->systray_icon_popup_menu);
 	gtk_widget_destroy(priv->swin_treeview);
 	gtk_widget_destroy(priv->swin_iconview);
-	gtk_widget_destroy(priv->toolbar);
+	g_object_unref(priv->toolbar);
 	g_object_unref(priv->action_group);
 	g_object_unref(priv->systray_icon);
 	g_object_unref(priv->systray_icon_popup_menu);
--
cgit 
